package com.amethyst.service.service.impl;

import com.amethyst.model.Student;
import com.amethyst.service.service.StudentService;
import com.amethyst.service.mapper.StudentMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Amethyst
 * @date 2023/3/16 10:54
 */
@Service
@RequiredArgsConstructor
public class StudentServiceImpl extends ServiceImpl<StudentMapper,Student> implements StudentService {
    private final StudentMapper studentMapper;

    @Override
    public List<Student> getStudentServiceMapper() {
        return studentMapper.selectList(Wrappers.emptyWrapper());
    }

    @Override
    public Student getStudentServiceMapperXml(String name) {
        return studentMapper.getStudent(name);
    }
}
